package com.lucky.back.mapper;

import com.lucky.back.pojo.entity.Productcategory;
import com.lucky.back.pojo.entity.Productclass;
import com.lucky.back.pojo.vo.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductClassMapper {
    int insert(Productclass productclass);

    int deleteById(Long id);

    int count();

    ProductClassStandardVO getStandardById(Long id);

    List<ProductClassListItemVO> list();

    List<ProductClassListItemVO> listBySupId(Long id);


    /**
     * 批量删除
     * @param list
     * @return
     */
    int deleteByIds(List<Long> list);

    int insertBatch(List<Productclass> productclassList);

    int updateById(Productclass productclass);

    /**
     *
     * @param name
     * @return
     */
    int countByName(String name);



}
